#include "MeasurementInterface.h"

MeasurementInterface::MeasurementInterface(QObject *parent) : QObject(parent)
{
    // create workpiece object
    m_pWorkpiece = m_workpieceFactory.CreateWorkpiece(WORKPIECE_TYPE_E452);
    connect(&(*m_pWorkpiece), &Workpiece::MesurementCalResponse,
            this, &MeasurementInterface::MesurementCalResponse,
            Qt::DirectConnection);
}

void MeasurementInterface::MesurementCalRequest(int workpieceId,
                                                int pictureId)
{
    // cache image
    m_pWorkpiece->CacheData(0, 1);
}
